<#import "/freemarker/modeltype.ftl" as mt>
<div class="dataTables_title">
	<div class="dataTables_title_left">按钮注释</div>
	<div class="dataTables_title_right">
		<a class="btn" href="javascript:;"><i class="fontello-icon-newspaper"></i> 详情</a>
	</div>
</div>
<table class="table table-bordered animate2 fadeInUp">
	<tr>
		<th>标题</th>
		<th>申请部门</th>
		<th>申请人</th>
		<th>创建时间</th>
		<th>审核状态</th>
		<th style="width:80px;">操作</th>
	</tr>
	<#list pageBean.resultList as re>
	<tr>
		<td>${re.title}</td>
		<td>${re.on}</td>
		<td>${re.cn}</td>
		<td>${re.ct?string('yyyy-MM-dd')}</td>
		<td><#if (re.auditStatusList?? && re.auditStatusList?size gt 0)>
				<#list re.auditStatusList as item>
					<#if item.au??>
						${(item.auName)!''} 
						【<span><#if item.status?? && item.status == 1><font style="color:green;">通过</font><#elseif item.status?? && item.status == 2><font style="color:red;">未通过</font><#elseif item.status?? && item.status == 4><font style="color:red;">已移交</font><#else>未审核</#if></span>】>>>
						<#if re.auditStatusList?size == (item.pc) && item.status == 1 >
							【<font style="color:orange;">全部通过</font>】
						<#elseif re.auditStatusList?size == (item.pc) && item.status == 2>
							【<font style="color:orange;">未通过</font>】
							<#break/>
			 			</#if>
					<#else>
						【<font style="color:orange;">未审核</font>】
						<#break/>
					</#if>
				</#list>
			</#if>
		</td>
		<td style="text-align:center;"><div class="btn-group">
			<a href="javascript:;" class="btn btn-xs btn-warning" title="申请单详情" onclick="javascript:sys_load_handle('reimburseManager-detail_${re.code}');return false;">
				<i class="icon-book"></i>
			</a>
			</div>
		</td>
	</tr>
	</#list>
	<tr>
	<td>统计</td>
	<td colspan="11">${(total)!''}</td>
	</tr>
</table>
<#import "/freemarker/pagination.ftl" as p>
<@p.pagination pageBean 'query_reimburseManager'/>